package com.likeycy.my;

import java.util.HashMap;

/**
 * @ClassName: TestMyHash
 * @Description: 测试实现的哈希表
 * @Author: sodagreen
 * @Date: 2021/3/25 22:00
 * @Version: 1.0
 */
public class TestMyHash {

    public static void main(String[] args) {
        System.out.println(Float.floatToIntBits(10.6f));
        System.out.println(Double.doubleToLongBits(10.6));
        System.out.println(Integer.toBinaryString(8));
        System.out.println(Integer.toBinaryString(Float.floatToIntBits(10.6f)));
        System.out.println(Long.toBinaryString(Double.doubleToLongBits(10.6)));
        Long l = new Long(278579891466485l);
        System.out.println(l.hashCode());
        System.out.println(Integer.toBinaryString(l.hashCode()));

        HashMap<String, Integer> map = new HashMap<>(4);
        map.put("1", 1);
        map.put("2", 1);
        map.put("3", 1);
        map.put("4", 1);
        map.put("5", 1);
        map.put("6", 1);
        map.put("7", 1);
        map.put("8", 1);
        map.put("9", 1);
        map.put("0", 1);
        map.put("10", 1);
        map.put("11", 1);
        map.put("12", 1);
        map.put("13", 1);

    }
}
